package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.domain.TbDriver;
import com.ruoyi.system.api.factory.RemoteDriverFallbackFactory;
import com.ruoyi.system.api.model.LoginDriver;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteDriverService", value = ServiceNameConstants.DRIVER_SERVICE, fallbackFactory = RemoteDriverFallbackFactory.class)
public interface RemoteDriverService
{
    @PostMapping("/driver/register")
    public LoginDriver register1(@RequestBody LoginDriver loginDriver);

    @GetMapping("/driver/getList/{driverPhone}")
    TbDriver register(@PathVariable("driverPhone") String driverPhone);
}
